package ru.ifmo.croak.impl.remoting.query.team3;

import java.rmi.Remote;
import java.rmi.RemoteException;

import ru.ifmo.croak.api.Message;
import ru.ifmo.croak.api.MessageQuery;
import ru.ifmo.croak.api.QueryRequest;
import ru.ifmo.croak.api.QueryService;
/**
 * Replacing MessageQuery interface with this one allows to use
 * its implementations with RMI.
 * 
 * @author ArinaAfanasyeva
 *
 */
public interface RemoteMessageQuery extends Remote {
	
    public QueryRequest getRequest() throws RemoteException;
	public void messageAvailable(Message message) throws RemoteException;
}
